Set-Location $PSScriptRoot

if(Test-Path bin)
{
    Remove-Item -Recurse -Force bin
}

dotnet build -c Release

Set-Location bin\Release

foreach($t in Get-ChildItem .)
{
    nuget push -source http://ubuntu.tsual.sf:7081/repository/nuget-hosted/ $t 
}

Set-Location $PSScriptRoot